package com.laoli.myspringboottest.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.laoli.myspringboottest.enums.ItemType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("tableB数据创建")
public class CreateBDto {

    @ApiModelProperty("值")
    @NotEmpty(message = "value不能为空")
    private String value;

    @ApiModelProperty("类型")
    @NotEmpty(message = "itemType不能为空")
    @JsonEnumDefaultValue
    private ItemType itemType;
}
